export interface ResponseData {
    code: number,
    message: string,
    ok: boolean
}
//SKU数据类型
export interface Attr {
    id?:number|string
    attrId: number | string, //平台属性ID
    valueId: number | string, //属性值ID
}
export interface SaleAttr {
    saleAttrId: number | string,   //属性id
    saleAttrValueId: number | string,  //属性值ID
}
//添加SKU商品

export interface SkuData {
    category3Id?: number | string, //三级分类的ID
    price?: number | string,    //SKU价格
    skuAttrValueList?: Attr[],  //平台属性收级
    skuDefaultImg?: string,  //售卖商品图片地址
    skuDesc?: string,   //sku描述
    skuName?: string,   //新增SKU名称
    skuSaleAttrValueList?: SaleAttr[],  //销售属性
    spuId?: number | string,  //已有SPUID
    tmId?: number | string,   //品牌ID
    weight?: number | string  //SKU重量，
    isSale?:number,
    id?:number
}
//获取sku接口返回的数据类型
export interface SkuResponseDate extends ResponseData {
    data: {
        records: SkuData[],
        total: number,
        size: number,
        current: number,
        orders: [],
        optimizeCountSql: boolean,
        hitCount: boolean,
        countId: null,
        maxLimit: null,
        searchCount: boolean,
        pages: number
    }
}

//获取SKU商品类型
export interface SkuInfoData extends ResponseData{
    data:SkuData[]
}